package com.paranoid.shiro04.mapper;


import com.paranoid.shiro04.entity.Perms;
import com.paranoid.shiro04.entity.Role;
import com.paranoid.shiro04.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {

    void save(User user);

    User findByUserName(String username);

    //查询所有角色
    User findRolesByUserName(String username);

    //根据角色id查询出权限的集合
    List<Perms> findPermsByRoleId(String id);

}
